package com.geek.factory.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 库存分布表
 * </p>
 *
 * @author author
 * @since 2025-06-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("inventory_distribution")
@ApiModel(value="InventoryDistribution对象", description="库存分布表")
public class InventoryDistribution implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "库存分布ID，主键自增")
    @TableId(value = "distribution_id", type = IdType.AUTO)
    private Integer distributionId;

    @ApiModelProperty(value = "产品ID(关联product表)")
    private Integer productId;

    @ApiModelProperty(value = "原料ID(关联material表)")
    private Integer materialId;

    @ApiModelProperty(value = "仓库ID(关联warehouse表)")
    private Integer warehouseId;
    
    @ApiModelProperty(value = "货柜ID(关联shelves表)")
    private Integer shelfId;

    @ApiModelProperty(value = "在该仓库的库存数量")
    private BigDecimal quantity;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "更新人")
    private String updatedBy;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedTime;


}
